package org.ztr.yanai.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.ztr.yanai.blog.enums.UsageTypeEnum;

/**
 * @Author: ZhaoTR
 * @Date: Created in 2025/11/22 10:00
 * @Description: 文章媒体关联表实体类
 * @Version: 1.0
 */
// 文章媒体
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("post_media")
public class PostMedia {
    @TableField("post_id")
    private Long postId;

    @TableField("media_id")
    private Long mediaId;

    @TableField("usage_type")
    private UsageTypeEnum usageType;
}